﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SysController
{
    public static class ProductInfoController
    {
        public static List<MODEL.Product> GetProductList(string codeList)
        {
            if (codeList == "")
            {
                return SysHelper.OperateContext.CurrentContext.BllSession.IProduct_BLL.GetListByWhere(s => s.ProductID == s.ProductID);
            }
            else
            {
                string[] codeArr = codeList.Split(',');
                return SysHelper.OperateContext.CurrentContext.BllSession.IProduct_BLL.GetListByWhere(s => codeArr.Contains(s.Code));
            }
        }




    }
}
